package com.ak.demo.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    static  String sdfyyyy_MM_dd = "yyyy-MM-dd";

    static String  sdfyyyy_MM_ddHHmm = "yyyy-MM-dd HH:mm";
    // 2021-01-17 08:21

    public static String getsdfyyyy_MM_dd(){
        return new SimpleDateFormat(sdfyyyy_MM_dd).format(new Date());
    }

    public static String getSdfyyyy_MM_ddHHmm(){
        return new SimpleDateFormat(sdfyyyy_MM_ddHHmm).format(new Date());
    }
}
